<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!--
    1. 准备容器
    -->
    <div id="box">{{ msg }}</div>
    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: "#box", // el 指定vue挂载的范围
        data: {
          msg: "学习vue2", // data提供数据
        },
      });
    </script>
  </body>
</html>
